package com.future.permission;

import io.github.yedaxia.apidocs.Docs;
import io.github.yedaxia.apidocs.DocsConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author yinhao
 */
   @SpringBootApplication
@MapperScan(basePackages = "com.future.permission.mapper")
public class PermissionApplication {

    public static void main(String[] args) {

        SpringApplication.run(PermissionApplication.class, args);

        DocsConfig config = new DocsConfig();
        config.setProjectPath("E:\\own\\permission"); // 项目根目录
        config.setProjectName("permission"); // 项目名称
        config.setApiVersion("V1.0");       // 声明该API的版本
        config.setDocsPath("E:\\own\\permission\\文档"); // 生成API 文档所在目录
        config.setAutoGenerate(Boolean.TRUE);  // 配置自动生成
        Docs.buildHtmlDocs(config); // 执行生成文档
    }

}
